package com.zbkj.admin.service.impl;

import com.zbkj.admin.service.AdminPeEnquiryHandleService;
import com.zbkj.common.request.enquiry.ReportRequest;
import com.zbkj.common.response.enquiry.EnquiryReportResponse;
import com.zbkj.common.token.FrontTokenComponent;
import com.zbkj.service.service.enquiry.IPeEnquiryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Slf4j
@Service
public class AdminPeEnquiryHandleServiceImpl implements AdminPeEnquiryHandleService {
    @Autowired
    private FrontTokenComponent frontTokenComponent;
    @Autowired
    private IPeEnquiryService peEnquiryService;

    @Override
    public EnquiryReportResponse enquiryReqort(ReportRequest reportRequest) {
        Long userId = frontTokenComponent.getLoginUserId();
        return peEnquiryService.enquiryReqort(userId, reportRequest);
    }
}
